module.exports = app => {
    app.beforeStart(async function () {

        if (!app.model)
            return;

        const [active_minutes, room_queue] = await Promise.all([
            app.model.Config.get('active_minutes', 30),
            app.model.Config.get('room_queue', 30),
        ]);
        await Promise.all([
            app.redis.set('config:active_minutes', active_minutes),
            app.redis.set('config:room_queue', room_queue),
        ]);

    });
};